import request from '../utils/request'
export const getSmsCode = (phone) => {
    return request({
        url: "/user/getSmsCode?phone=" + phone,
        method: 'get'
    })
}
export const login = (phone, smsCode) => {
    return request({
        url: "/user/login",
        method: "post",
        data: { phone, smsCode }
    })
}